package com.leagueoflegends.mapper;

import com.leagueoflegends.bean.ChampionPassive;
import com.leagueoflegends.bean.ChampionPassiveDTO;
import com.leagueoflegends.bean.ChampionPassiveVO;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ChampionPassiveMapper {

    void insert(ChampionPassive passive);

    void delete(Integer championId);

    void update(ChampionPassive passive);

    ChampionPassive select(Integer championId);

    List<ChampionPassiveVO> selectAllVO();

    Integer countChampionHavePassive();

    Integer countAllChampion();

    /**
     * 根据英雄 title 去寻找该英雄对应的 championId
     */
    Integer searchChampionId(String title);

    List<ChampionPassiveDTO> searchNoPassiveChampion();

    Integer titleToPassive(String title);

    List<String> idToTitle(int id);

    void set0(Integer championId);

    void set1(Integer championId);
}
